<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>主页</title>

<link rel="stylesheet" href="css/jquery.treeview.css" />
<link rel="stylesheet" href="css/screen.css" />
<script src="js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="js/jquery.cookie.js" type="text/javascript"></script>
<script src="js/jquery.treeview.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#browser").treeview({
		toggle: function() {
			console.log("%s was toggled.", $(this).find(">span").text());
		}
	});

	$("#add").click(function() {
		var branches = $("<li><span class='folder'>New Sublist</span><ul>" +
			"<li><span class='file'>Item1</span></li>" +
			"<li><span class='file'>Item2</span></li></ul></li>").appendTo("#browser");
		$("#browser").treeview({
			add: branches
		});
	});
});
</script>
</head>
<body>

<h1 id="banner">首页</h1>
	<div id="main">

	console.log(${menuList})

	<ul id="browser" class="filetree treeview-famfamfam">
	
		<li><span class="folder">我的收藏</span>			
			<ul>			
				<li><span class="folder">子菜单</span>
					<ul>
						<li><span class="file">Item 1.1.1</span></li>
					</ul>
				</li>				
				<li><span class="folder">子菜单</span>
					<ul>
						<li><span class="folder">Subfolder 2.1</span>
							<ul id="folder21">
								<li><span class="file">File 2.1.1</span></li>
								<li><span class="file">File 2.1.2</span></li>
					        </ul>
				       </li>
						<li><span class="folder">Subfolder 2.2</span>
							<ul>
								<li><span class="file">File 2.2.1</span></li>
								<li><span class="file">File 2.2.2</span></li>
							</ul>
						</li>
					</ul>
				</li>
				
				<li class="closed"><span class="folder">子菜单</span>
					<ul>
						<li><span class="file">File 3.1</span></li>
					</ul>
				</li>
				
				<li><span class="file">子菜单</span></li>
				
			</ul>
		</li>
		
		
		
		<li><span class="folder">菜单二</span>			
			<ul>			
				<li><span class="folder">子菜单</span>
					<ul>
						<li><span class="file">Item 1.1.1</span></li>
					</ul>
				</li>				
				<li><span class="folder">子菜单</span>
					<ul>
						<li><span class="folder">Subfolder 2.1</span>
							<ul id="folder21">
								<li><span class="file">File 2.1.1</span></li>
								<li><span class="file">File 2.1.2</span></li>
					        </ul>
				       </li>
						<li><span class="folder">Subfolder 2.2</span>
							<ul>
								<li><span class="file">File 2.2.1</span></li>
								<li><span class="file">File 2.2.2</span></li>
							</ul>
						</li>
					</ul>
				</li>
				
				<li class="closed"><span class="folder">子菜单</span>
					<ul>
						<li><span class="file">File 3.1</span></li>
					</ul>
				</li>
				
				<li><span class="file">子菜单</span></li>
				
			</ul>
		</li>
		
				
	</ul>


	<button id="add">Add!</button>

	
</div>




</body>
</html>